package com.cf.demo.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author Chengfei
 * @Description
 * @date 2023/6/12
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Phone {

    @Excel(name = "商品id", width = 15, orderNum = "10")
    private int id;

    @Excel(name = "更新时间", format = "yyyy-MM-dd HH:mm:ss", width = 25, orderNum = "20")
    private Date updateTime;

    // 本应该使用Date,此处错误使用String
    @Excel(name = "创建时间", format = "yyyy-MM-dd HH:mm:ss" , width = 25, orderNum = "30")
    private String createTime;
}
